<template>
  <div class="upwindow">
    <el-button size="mini" type="prymary" @click="toPath('./')">首页</el-button>
    <div class="box">
      <div class="head"></div>
      <UpData />
      <div class="foot"></div>
    </div>
  </div>
</template>

<script>
import UpData from "@/components/UpData.vue";
export default {
  components: {
    // 注册组件
    UpData,
  },
  data() {
    return {};
  },
  methods: {
    toPath(path) {
      this.$router.push(path);
    },
  },
};
</script>

<style lang="scss" scoped>
.upwindow {
  margin: 0;
  height: 100vh;
  background-image: url("../assets/images/layout/big-bj.png");
  background-size: cover;
  background-position: center; /* 图片居中 */
  background-repeat: no-repeat; /* 防止图片重复 */
}
.box {
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/dialog/bj.png");
  background-size: cover;
  background-position: center; /* 图片居中 */
  background-repeat: no-repeat; /* 防止图片重复 */
  position: relative;
}
.head {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  background-image: url("../assets/images/layout/header.png");
  background-size: cover;
  background-position: center; /* 图片居中 */
  background-repeat: no-repeat; /* 防止图片重复 */
}

.foot {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-image: url("../assets/images/layout/footer.png");
  background-size: cover;
  background-position: center; /* 图片居中 */
  background-repeat: no-repeat; /* 防止图片重复 */
}
</style>
